Skip to content

Add "Show in Linear Layout" projection for WMMA and MFMA tabs#16

Merged
leeliu103 merged 1 commit intomainfrom
feature/wmma-mfma-linear-layout-projection
Dec 8, 2025
Merged

Add "Show in Linear Layout" projection for WMMA and MFMA tabs#16
leeliu103 merged 1 commit intomainfrom
feature/wmma-mfma-linear-layout-projection

Conversation

@leeliu103
Copy link
Owner

Extends the cross-tab layout projection system to support WMMA and MFMA tabs, with shared infrastructure to eliminate code duplication and comprehensive bug fixes.

Key additions:

  • Shared projection helpers in CanvasTab base class (setupLinearLayoutProjection, prepareLinearLayoutSnapshot, normalizeLaneDimensionNames)
  • WMMA tab projection with dimension reordering (dimM/dimK/dimN) per operand type
  • MFMA tab projection with tensor shape clamping for small layouts (fixes 4×16 bug)
  • "Show in Linear Layout" buttons added to WMMA and MFMA tab UIs

Bug fixes:

  • Fixed WMMA dimension ordering bug (dimensions now reordered to match tensor axes)
  • Fixed MFMA 4×16 conversion bug (layouts clamped to actual tensor size)
  • Fixed test organization (moved stray tests inside describe blocks)
  • Eliminated code duplication between Block/WMMA/MFMA tabs

Test coverage:

  • Added CanvasTab.test.ts for shared projection helper testing
  • Added WMMALayoutTab.test.ts (4 tests) with dimension ordering and alert coverage
  • Added MFMALayoutTab.test.ts (5 tests) with 4×16 regression test
  • Added LinearLayoutProjection.integration.test.ts for end-to-end validation
  • Enhanced BlockLayoutTab.test.ts with missing edge case coverage
  • Total: 166 tests passing (up from 154)

All three layout tabs now provide consistent projection UX with automatic dimension filtering, name normalization, and helpful error messages.

🤖 Generated with Claude Code

Extends the cross-tab layout projection system to support WMMA and MFMA tabs, with shared infrastructure to eliminate code duplication and comprehensive bug fixes.

Key additions:
- Shared projection helpers in CanvasTab base class (setupLinearLayoutProjection, prepareLinearLayoutSnapshot, normalizeLaneDimensionNames)
- WMMA tab projection with dimension reordering (dimM/dimK/dimN) per operand type
- MFMA tab projection with tensor shape clamping for small layouts (fixes 4×16 bug)
- "Show in Linear Layout" buttons added to WMMA and MFMA tab UIs

Bug fixes:
- Fixed WMMA dimension ordering bug (dimensions now reordered to match tensor axes)
- Fixed MFMA 4×16 conversion bug (layouts clamped to actual tensor size)
- Fixed test organization (moved stray tests inside describe blocks)
- Eliminated code duplication between Block/WMMA/MFMA tabs

Test coverage:
- Added CanvasTab.test.ts for shared projection helper testing
- Added WMMALayoutTab.test.ts (4 tests) with dimension ordering and alert coverage
- Added MFMALayoutTab.test.ts (5 tests) with 4×16 regression test
- Added LinearLayoutProjection.integration.test.ts for end-to-end validation
- Enhanced BlockLayoutTab.test.ts with missing edge case coverage
- Total: 166 tests passing (up from 154)

All three layout tabs now provide consistent projection UX with automatic dimension filtering, name normalization, and helpful error messages.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@leeliu103 leeliu103 merged commit 14d9e96 into main Dec 8, 2025
1 check passed
@leeliu103 leeliu103 deleted the feature/wmma-mfma-linear-layout-projection branch December 8, 2025 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant